package com.xhl.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xhl.dao.IPropertyDao;
import com.xhl.vo.Pager;
import com.xhl.vo.PropertyVO;

@Service
public class PropertyService implements IPropertyDao {


    @Autowired
    IPropertyDao iPropertyDao;

    @Override
    public List<PropertyVO> queryProperty(Pager<?> p) {
        return iPropertyDao.queryProperty(p);
    }

    @Override
    public long count(String cid) {
        return iPropertyDao.count(cid);
    }

    @Override
    public void addProperty(PropertyVO pvo) {
        iPropertyDao.addProperty(pvo);
    }

    @Override
    public void deleteProperty(String id) {
        iPropertyDao.deleteProperty(id);
    }

    @Override
    public void updateProperty(PropertyVO pvo) {
        iPropertyDao.updateProperty(pvo);
    }

    @Override
    public List<PropertyVO> queryPropertyById(String id) {
        return iPropertyDao.queryPropertyById(id);
    }

}
